package org.lee.pattern.strategy;

import java.math.BigDecimal;

/**
 * AlipayPay
 *
 * @author dralee
 * @date 2022-03-09 10:54:28
 **/
//@Service("xxxx:Alipay") // spring中可通过注入名称进行处理
public class AlipayPay implements IPay {
    @Override
    public String pay(String orderId, BigDecimal price) {
        return "alipay pay the order ".concat(orderId).concat(" with ￥").concat(price.toPlainString());
    }
}
